Package com.cisco.pt.ipc.sim.impl
Class ModulePhysicalViewImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ModulePhysicalViewImpl
- All Implemented Interfaces:
IPCObject,ModulePhysicalView
Information provided by the PKI file:
\class ModulePhysicalView
\brief Physical view for module.
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionModulePhysicalViewImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation provided by the PKI file:intInformation provided by the PKI file:intgetX1()Information provided by the PKI file:intgetX2()Information provided by the PKI file:intgetY1()Information provided by the PKI file:intgetY2()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanisPower()Information provided by the PKI file:voidsetHorizontal(boolean bHor) Information provided by the PKI file:voidsetIsNonRemovable(boolean bNonRemovable) Information provided by the PKI file:voidsetIsPower(boolean bPower) Information provided by the PKI file:voidsetModuleAdded(boolean bAdded) Information provided by the PKI file:voidsetSlotNum(int slotNum) Information provided by the PKI file:voidsetX1(int X1) Information provided by the PKI file:voidsetX2(int X2) Information provided by the PKI file:voidsetY1(int Y1) Information provided by the PKI file:voidsetY2(int Y2) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
ModulePhysicalViewImpl
public ModulePhysicalViewImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setIsPower
public void setIsPower(boolean bPower) Information provided by the PKI file:
\brief Sets if the power is on or off. \param bPower, true to set power on, false for off.- Specified by:
setIsPowerin interfaceModulePhysicalView- Parameters:
bPower- Takes in a parameter of bPower
-
isPower
public boolean isPower()Information provided by the PKI file:
\brief Gets if the power is on or off. \return bool, true if power on, false for off.- Specified by:
isPowerin interfaceModulePhysicalView- Returns:
- boolean Returns a boolean
-
setSlotNum
public void setSlotNum(int slotNum) Information provided by the PKI file:
\brief Sets the slot number used by the view. \param slotNum, slot number to use.- Specified by:
setSlotNumin interfaceModulePhysicalView- Parameters:
slotNum- Takes in a parameter of slotNum
-
getSlotNum
public int getSlotNum()Information provided by the PKI file:
\brief Gets the slot number used by the view. \return int, slot number to use.- Specified by:
getSlotNumin interfaceModulePhysicalView- Returns:
- int Returns a int
-
setModuleAdded
public void setModuleAdded(boolean bAdded) Information provided by the PKI file:
\brief Sets weither a module is in the view. \param bAdded, true if a module is in the view, false if not.- Specified by:
setModuleAddedin interfaceModulePhysicalView- Parameters:
bAdded- Takes in a parameter of bAdded
-
getModuleAdded
public boolean getModuleAdded()Information provided by the PKI file:
\brief Gets weither a module is in the view. \return bool, true if a module is in the view, false if not.- Specified by:
getModuleAddedin interfaceModulePhysicalView- Returns:
- boolean Returns a boolean
-
setIsNonRemovable
public void setIsNonRemovable(boolean bNonRemovable) Information provided by the PKI file:
\brief Sets weither it is non-removable. \param bNonRemovable, true if it can't be removed, false if it can.- Specified by:
setIsNonRemovablein interfaceModulePhysicalView- Parameters:
bNonRemovable- Takes in a parameter of bNonRemovable
-
isNonRemovable
public boolean isNonRemovable()Information provided by the PKI file:
\brief Gets weither it is non-removable. \return bool, true if it can't be removed, false if it can.- Specified by:
isNonRemovablein interfaceModulePhysicalView- Returns:
- boolean Returns a boolean
-
setHorizontal
public void setHorizontal(boolean bHor) Information provided by the PKI file:
\brief Used for power buttons, sets if it is a horzontal button or a vertical button. \param bHor, true if it is a horizontal button, false if it is vertical.- Specified by:
setHorizontalin interfaceModulePhysicalView- Parameters:
bHor- Takes in a parameter of bHor
-
isHorizontal
public boolean isHorizontal()Information provided by the PKI file:
\brief Used for power buttons, Gets if it is a horzontal button or a vertical button. \return bool, true if it is a horizontal button, false if it is vertical.- Specified by:
isHorizontalin interfaceModulePhysicalView- Returns:
- boolean Returns a boolean
-
setX1
public void setX1(int X1) Information provided by the PKI file:
\brief Sets leftmost x coordintate. \param X1, the leftmost x coordintate.- Specified by:
setX1in interfaceModulePhysicalView- Parameters:
X1- Takes in a parameter of X1
-
getX1
public int getX1()Information provided by the PKI file:
\brief Gets leftmost x coordintate. \return int, the leftmost x coordintate.- Specified by:
getX1in interfaceModulePhysicalView- Returns:
- int Returns a int
-
setX2
public void setX2(int X2) Information provided by the PKI file:
\brief Sets rightmost x coordintate. \param X2, the rightmost x coordintate.- Specified by:
setX2in interfaceModulePhysicalView- Parameters:
X2- Takes in a parameter of X2
-
getX2
public int getX2()Information provided by the PKI file:
\brief Gets rightmost x coordintate. \return int, the rightmost x coordintate.- Specified by:
getX2in interfaceModulePhysicalView- Returns:
- int Returns a int
-
setY1
public void setY1(int Y1) Information provided by the PKI file:
\brief Sets top y coordintate. \param Y1, the top y coordintate.- Specified by:
setY1in interfaceModulePhysicalView- Parameters:
Y1- Takes in a parameter of Y1
-
getY1
public int getY1()Information provided by the PKI file:
\brief Gets top y coordintate. \return int, the top y coordintate.- Specified by:
getY1in interfaceModulePhysicalView- Returns:
- int Returns a int
-
setY2
public void setY2(int Y2) Information provided by the PKI file:
\brief Sets bottom y coordintate. \param Y2, the bottom y coordintate.- Specified by:
setY2in interfaceModulePhysicalView- Parameters:
Y2- Takes in a parameter of Y2
-
getY2
public int getY2()Information provided by the PKI file:
\brief Gets bottom y coordintate. \return int, the bottom y coordintate.- Specified by:
getY2in interfaceModulePhysicalView- Returns:
- int Returns a int
-